<template>
    <div>
        <van-nav-bar title="搜索" left-text="" left-arrow @click-left="onClickLeft" />
        <van-search v-model="value" show-action label="东京" placeholder="请输入搜索关键词" @search="onSearch">
            <template #action>
                <div @click="onClickButton">搜索</div>
            </template>
        </van-search>
        <p style="margin-left: 20px; color: darkgrey;">历史搜索记录</p>
        <p style="font-size: 30px; text-align: center; line-height: 500px; color: darkgrey;">暂无历史记录</p>
    </div>
</template>

<script setup>
import {useRouter} from 'vue-router';    
let router=useRouter()
let onClickLeft=()=>
{
    console.log('搜索页返回首页');
    
    router.push('/')
}
</script>

<style lang="scss" scoped></style>